<template>
  <div id="nav">
    <div class="wrap">
      <div class="nav-left">
        <div class="logo"></div>
        <ul class="nav">
          <li class="active">
            <router-link to="/">发现音乐</router-link>
          </li>
          <li>
            <router-link to="/about">我的音乐</router-link>
          </li>
          <li>
            <router-link to="/friend">朋友</router-link>
          </li>
          <li>
            <a href="#">商城</a>
          </li>
          <li>
            <a href="#">音乐人</a>
          </li>
          <li>
            <router-link to="/down">下载客户端</router-link>
          </li>
        </ul>
      </div>
      <div class="nav-right">
        <div>
          <div class="inp">
            <i></i>
            <input type="text" placeholder="音乐/视频/电台/用户" />
          </div>
        </div>
        <div class="a">
          <a class="cz" href="#">创作这中心</a>
          <router-link to="/login">登录</router-link>
        </div>
      </div>
    </div>
  </div>
  
  <!-- <iframe id="bofangqi" frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=450 :src="`//music.163.com/outchain/player?type=1&id=${$store.state.id}&auto=1&height=430`"></iframe> -->
  <router-view />
</template>
<script>
export default {
  methods: {
    
  },
  computed: {
    list() {
      return parseInt(this.$store.state.id);
    },
  },
};
</script>
<style lang="less" >

#bofangqi {
  position: fixed;
  bottom: 0;
  right: 5%;
}
* {
  margin: 0;
  padding: 0;
}
body {
  background-color: rgb(245, 245, 245);
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}
#nav {
  background-color: #242424;
  height: 70px;
  line-height: 70px;
}
.wrap {
  width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  a {
    color: #fff;
    font-size: 14px;
  }
  .logo {
    background: url("imgs/topbar.png") no-repeat 0 -19px;
    width: 157px;
    height: 33px;
    padding-right: 20px;
  }
  .nav {
    display: flex;
    height: 70px;
    .active {
      background-color: #000;
    }
    a {
      padding: 0px 19px;
    }
  }
  .nav-left {
    display: flex;
    align-items: center;
  }
  .nav-right {
    display: flex;
    .inp {
      background-color: #fff;
      border-radius: 32px;
      width: 158px;
      height: 32px;
      margin-top: 19px;
      position: relative;
      i {
        position: absolute;
        background: url("imgs/topbar.png") no-repeat -10px -108px;
        width: 13px;
        height: 14px;
        left: 8px;
        top: 8px;
      }
      input {
        position: absolute;
        outline: none;
        border: none;
        width: 121px;
        height: 16px;
        top: 8px;
        left: 25px;
      }
    }
  }
}
.a {
  display: flex;
  width: 140px;
  justify-content: space-between;
  margin-left: 20px;
}
</style>
